import java.util.Map;

import com.alibaba.fastjson.JSON;
import com.bootdo.system.dto.GmspDto;

public class json2cc {
	
	public static void main(String[] args) {
		String a="{\"code\":\"ok\",\"message\":\"\",\"data\":{\"order_id\":645435886082,\"product_price\":\"2.600000\",\"total_price\":\"2.600000\",\"state\":100,\"recharge_url\":\"\"}}";  
				System.out.println(a);
				Map maps = (Map)JSON.parse(a); 
				String jsonString = JSON.toJSONString(maps.get("data"));
				System.out.println(jsonString);
				JSON.parseObject(JSON.toJSONString(maps.get("data")), GmspDto.class);
	}

}
